<template>
	<view>
		<view class="processtup"><image src="http://mall-image.hxyrfwpt.com/static/images/processtup3.png"></image></view>
		<view class="content">
			<view><image src="http://mall-image.hxyrfwpt.com/static/images/ico_shenhe.png"></image></view>
			<p class="p1">{{ statusText }}</p>
			<p class="p2">{{ statusRemark }}</p>
		</view>
		<view class="content"><button v-if="status != 1" @click="goRuZhu">重新申请</button></view>
	</view>
</template>

<script>
import localStorage from '@/utils/index.js';
import { submitRuZhu, getAllMerCategoryList } from '@/api/shanghu';
import { VUE_APP_RESOURCES_URL, VUE_APP_API_URL } from '@/config';
export default {
	name: 'merchantRuzhuResult',
	components: {},
	data() {
		return {
			statusText: '审核中',
			status: 0,
			statusRemark: '您的入驻审核已提交成功,请耐心等待'
		};
	},
	methods: {
		goRuZhu: function() {
			 var merId = parseInt(this.$yroute.query.merId);
		//	 alert(this.$yroute.query.merId);
			this.$yrouter.push({ path: '/pagesMer/shanghu/merchantRuzhu',query:{merId} });
		},
		getLoadInfo() {
			const status = uni.getStorageSync('statusText');
			const failMessage = uni.getStorageSync('failMessage');

			if (status == '0') {
				this.statusText = '审核中';
			} else if (status == '-1') {
				this.statusText = '审核未通过';
				if (failMessage) {
					this.statusRemark = failMessage;
				}
			} else if (status == '1') {
				this.statusText = '审核通过';
					this.statusRemark = "";
			}

			
			this.status = status;
		}
	},
	watch: {
		// '$route'(to, from) {
		//        this.$router.go(0);
		//      }
	},

	created() {
		this.getLoadInfo();
	},

	mounted: function() {}
};
</script>

<style>
.processtup image {
	width: 100%;
	height: 200rpx;
}

.content {
	margin-top: 3rem;
	text-align: center;
}
.content image {
	width: 300rpx;
	height: 300rpx;
}
.content .p1 {
	color: #000000;
	padding: 0.5rem;
}
.content .p2 {
	color: #999999;
	padding: 0.5rem;
}

.content button {
	background: #2B4A39;
	color: #ffffff;
	margin-top: 10px;
	width: 50%;
}
</style>
